package com.wits.platform.common.tag;

import java.util.List;

import com.wits.platform.entity.Role;


public class Functions {

	public static boolean containsRole(List<Role> array,String id){
		if(array==null || id==null){
			return false;
		}
		for(Role role : array){
			if(id.equals(role.getRoleId())){
				return true;
			}
		}
		return false;
	}
	
	public static boolean contains(List array,String id){
		if(array==null){
			return false;
		}
		return array.contains(id);
	}

}
